﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketPostData.BLL
{
    /// <summary>
    /// 系统配置
    /// </summary>
    public static class Config
    {
        static Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

        /// <summary>
        /// 数据库连接
        /// </summary>
        public static string DBConnString
        {
            get
            {
               //return config.ConnectionStrings["ConnectionString"].ConnectionString
                return config.AppSettings.Settings["ConnectionString"].Value;
            }
        }
        
    }
}
